import Layout from '@/views/layout/Layout'

export default {
  path: '/tpm',
  component: Layout,
  children: [
    // 设备台账
    {
      path: 'deviceDetails',
      component: () => import('@/views/tpm/deviceAccount/deviceDetails'),
      name: 'deviceDetails',
      meta: { title: '设备详情', noCache: true, roles: [] },
    },
    {
      path: 'deviceType',
      component: () => import('@/views/tpm/deviceAccount/deviceType'),
      name: 'deviceType',
      meta: { title: '设备类型管理', noCache: true, roles: [] },
    },
    {
      path: 'basicInfo',
      component: () => import('@/views/tpm/deviceAccount/basicInfo'),
      name: 'basicInfo',
      meta: { title: '基本信息', noCache: true, roles: [] },
    },
    // 售后管理

    {
      path: 'serviceInfo',
      component: () => import('@/views/tpm/deviceAccount/serviceManage/serviceInfo'),
      name: 'serviceInfo',
      meta: { title: '售后管理', noCache: true, roles: [] },
    },
    {
      path: 'serviceResume',
      component: () => import('@/views/tpm/deviceAccount/serviceManage/serviceResume'),
      name: 'serviceResume',
      meta: { title: '售后管理', noCache: true, roles: [] },
    },
    {
      path: 'fileManage',
      component: () => import('@/views/tpm/deviceAccount/fileManage'),
      name: 'fileManage',
      meta: { title: '文件管理', noCache: true, roles: [] },
    },
    {
      path: 'positionInfo',
      component: () => import('@/views/tpm/deviceAccount/positionInfo'),
      name: 'positionInfo',
      meta: { title: '岗位信息', noCache: true, roles: [] },
    },
    {
      path: 'attachmentList',
      component: () => import('@/views/tpm/deviceAccount/attachmentList'),
      name: 'attachmentList',
      meta: { title: '备件清单', noCache: true, roles: [] },
    },
    {
      path: 'inventoryManage',
      component: () => import('@/views/tpm/deviceAccount/inventoryManage'),
      name: 'inventoryManage',
      meta: { title: '盘点管理', noCache: true, roles: [] },
    },
    //备件管理
    {
      path: 'partsAccount',
      component: () => import('@/views/tpm/partManage/partsAccount'),
      name: 'partsAccount',
      meta: { title: '备件管理', noCache: true, roles: [] },
    },
    {
      path: 'partScrap',
      component: () => import('@/views/tpm/partManage/partScrap'),
      name: 'partScrap',
      meta: { title: '备件报废', noCache: true, roles: [] },
    },
    {
      path: 'issueApplication',
      component: () => import('@/views/tpm/partManage/issueApplication'),
      name: 'issueApplication',
      meta: { title: '出库申请', noCache: true, roles: [] },
    },
    // 点检管理
    {
      path: 'spotCheckItem',
      component: () => import('@/views/tpm/spotCheckManage/spotCheckItem'),
      name: 'spotCheckItem',
      meta: { title: '点检项', noCache: true, roles: [] },
    },
    {
      path: 'checkingPlan',
      component: () => import('@/views/tpm/spotCheckManage/checkingPlan'),
      name: 'checkingPlan',
      meta: { title: '点检计划', noCache: true, roles: [] },
    },
    {
      path: 'spotCheckTask',
      component: () => import('@/views/tpm/spotCheckManage/spotCheckTask'),
      name: 'spotCheckTask',
      meta: { title: '点检任务', noCache: true, roles: [] },
    },
    // 保养管理
    {
      path: 'maintainItem',
      component: () => import('@/views/tpm/maintainManage/maintainItem'),
      name: 'maintainItem',
      meta: { title: '保养项', noCache: true, roles: [] },
    },
    {
      path: 'maintenancePlan',
      component: () => import('@/views/tpm/maintainManage/maintenancePlan'),
      name: 'maintenancePlan',
      meta: { title: '保养计划', noCache: true, roles: [] },
    },
    {
      path: 'maintenanceTasks',
      component: () => import('@/views/tpm/maintainManage/maintenanceTasks'),
      name: 'maintenanceTasks',
      meta: { title: '保养任务', noCache: true, roles: [] },
    }, // 维修管理
    {
      path: 'faultType',
      component: () => import('@/views/tpm/repairManage/faultType'),
      name: 'faultType',
      meta: { title: '故障类型', noCache: true, roles: [] },
    },
    {
      path: 'reportForRepairManage',
      component: () => import('@/views/tpm/repairManage/reportForRepairManage'),
      name: 'reportForRepairManage',
      meta: { title: '报修管理', noCache: true, roles: [] },
    },
    {
      path: 'repairOrderCreation',
      component: () => import('@/views/tpm/repairManage/repairOrderCreation'),
      name: 'repairOrderCreation',
      meta: { title: '维修单创建', noCache: true, roles: [] },
    },
    // 报废管理
    {
      path: 'scrapApplicationForm',
      component: () => import('@/views/tpm/scrapManage/scrapApplicationForm'),
      name: 'scrapApplicationForm',
      meta: { title: '申请报废单', noCache: true, roles: [] },
    },
  ],
}
